From: Wei Liu Date: Fri, 20 Dec 2019 19:47:49 +0000 (+0000) Subject: x86: Hyper-V clock source's offset should be signed X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~993 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=dffe18cf81a3c4c2260791d2246220a4d4f0cc8f;p=xen.git x86: Hyper-V clock source's offset should be signed Also drop the useless inline keyword. Fixes: 685d16bd5 (x86: implement Hyper-V clock source) Signed-off-by: Wei Liu Acked-by: Andrew Cooper --- diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index a3c9b927e8..fca25e1c22 100644 --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -696,9 +696,10 @@ static int64_t __init init_hyperv_timer(struct platform_timesource *pts) return freq; } -static inline uint64_t read_hyperv_timer(void) +static uint64_t read_hyperv_timer(void) { - uint64_t scale, offset, ret, tsc; + uint64_t scale, ret, tsc; + int64_t offset; uint32_t seq; const struct ms_hyperv_tsc_page *tsc_page = hyperv_tsc;